<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">
    <ui:composition template="/layout/masterpage_admin.xhtml">
        <f:metadata>
            
            <f:event type="preRenderView" listener="#{sys_NguoiDungController.onPageLoad_CheckAdmin()}">
                
            </f:event>
        </f:metadata>
        
         <ui:define name="ui-header">
             <title>#{utilsController.getLanguages("TaoMoiCapNhat")}</title>
        </ui:define>
       
        
        <ui:define name="ui-content">
            <div class="panel panel-blue margin-bottom-40">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-tasks"></i> #{utilsController.getLanguages("TinhThanhPho")}</h3>
                </div>
                <div class="panel-body"> 
                    <h:form class="margin-bottom-40" id="frmquocgia">
                        <p:growl id="growl" showDetail="true" sticky="true" escape="false" />  
                        
                        <input type="hidden" id="txtQuocGiaID" value="#{param['id']}" />
                        
                        
                        <div class="form-group">
                            <label for="txtTinhID">#{utilsController.getLanguages("TinhID")}</label>
                            <input type="text" class="form-control" id="txtTinhID" value="#{sI_TinhController.item.tinhID}" />
                        </div>
                       <div class="form-group">
                            <label for="txtTenTinh">#{utilsController.getLanguages("TenTinh")}</label>
                            <input type="text" class="form-control" id="txtTenTinh" value="#{sI_TinhController.item.tenTinh}" />
                        </div>
                        <div class="form-group">
                            <label for="cboTrangThai">#{utilsController.getLanguages("TrangThai")}</label>
                            <select   id="cboTrangThai" class="form-control" value="#{sI_TinhController.item.trangThai.toString()}">
                                <option value="1">#{utilsController.getLanguages("SuDung")}</option>
                                <option value="-1">#{utilsController.getLanguages("KhongSuDung")}</option>
                            </select>
                        </div>
                         <div class="form-group">
                            <label for="txtThuTu">#{utilsController.getLanguages("ThuTu")}</label>
                            <input type="text" class="form-control number" id="txtThuTu" value="#{sI_TinhController.item.thuTu}" />
                        </div>
                        <button class="btn-u btn-u-blue" type="button" onclick="Save_Tinh_Click();">#{utilsController.getLanguages("Save")}</button>
                        <a href="/Admin/si/provices.html" class="btn-u btn-u-aqua">#{utilsController.getLanguages("Cancel")}</a>
                        <p:remoteCommand name="Save_Tinh" actionListener="#{sI_TinhController.btnSave_Click}" update=":frmquocgia"></p:remoteCommand>
                    </h:form>
                </div>
            </div>
            
        </ui:define>
    </ui:composition> 
</html>